#遍历字典中所有的key键
a={"name":"张三","age":23,"gender":"男"}
for i in a.keys():
    print(i)

#遍历字典中的value值
for j in a.values():
    print(j)

#遍历字典中的键与值

for s in a.items():
    print(s)
    for x in s:
        print(x)

for z,c in a.items():
    print(z,c)
